import {get, post } from "./request";
export const useProjectList = (params) => {
    return get("/project/list", params)
}
export const useProjectDetail = (pid) => {
    return get("/project/detail", { pid })
}
export const getProjectBypid = pid => get("/project/get", { pid })
export const useCreateProject = (params) => {
    return post("/project/create", params)
}
export const deleteProject = (pid) => {
    return post("/project/delete", { pid })
}
export const useUpdateProject = (params) => {
    return post("/project/update", params)
}
export const useUpdateTask = (params) => {
    return post("/project/updateTask", params)
}
export const getRecruitListByPid = (pid) => {
    return get("/recruit/listByPid", { pid })
}